package com.ambientrs.bot.io;

import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.sql.Timestamp;

public class Logger extends BufferedWriter {

    private static final String stamp = new Timestamp(System.currentTimeMillis()).toString().replace(" ", "_").replace(":", "'");
    public static File file = new File(IOManager.home
            + "/log/"
            + stamp.substring(0, stamp.lastIndexOf('.')) + ".log");

    public Logger() throws IOException {
        super(new FileWriter(file));
    }

}
